//监听工具条
table.on('tool(demo)', function(obj){
    var data = obj.data;
    if(obj.event === 'detail'){
        //修改
        //layer.alert(JSON.stringify(data.id))
        layer.ready(function(){
            layer.open({
                type: 2,
                title: '修改',
                maxmin: true,
                area: ['750px', '600px'],
                // content: '{:url('/worklist/detail/page')}',
                // content: '{:url('main/edituser')}?id='+data.id,
                // content: '{:url('main/edituser')}?id='+data.id,
                cancel: function(){ //刷新网页
                table.reload('idTest');//重新加载表格数据
            }
        });
        });
    }
});